/**
Copyright (c) 2008 Arnaud Fabre <arnaud333@gmail.com>
Copyright (c) 2008 Pierre "delroth" Bourdon <root@delroth.is-a-geek.org>

This file is part of Vos Tutos Offline.

Vos Tutos Offline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vos Tutos Offline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vos Tutos Offline.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _VTO_GLOBAL_H
#define _VTO_GLOBAL_H

#include <QObject>
#include <QString>
#define Q(text) QString(text)
#define LICENCE(type, text) case type: \
							return QString(text);  \
							break;

class VTO{

public:
    enum { BIGTUTORIAL=0, CHAPTER, MINITUTORIAL, NEWS, INTRO, CONCLU};
    enum { COPYRIGHT=0, CCBY, CCBYSA, CCBYNC, CCBYSANC, CCBYND, CCBYNCND};
    
    static QString version()
    {
	return Q("VTO 0.1 beta");
    };
    
    static QString licence(int l)
    {
    	switch(l){
    	case COPYRIGHT:
    		QObject::tr("Copie non authorisée");
    	break;
    	LICENCE(CCBY,"Creative Commons By, See <http://creativecommons.org/licenses/by/2.0>")
    	LICENCE(CCBYSA,"Creative Commons By-Sa, See <http://creativecommons.org/licenses/by-sa/2.0>")
    	LICENCE(CCBYNC,"Creative Commons By-Nc, See <http://creativecommons.org/licenses/by-nc/2.0>")
    	LICENCE(CCBYSANC,"Creative Commons By-Nc-Sa, See <http://creativecommons.org/licenses/by-nc-sa/2.0>")
    	LICENCE(CCBYND,"Creative Commons By-Nd, See <http://creativecommons.org/licenses/by-nd/2.0>")
    	LICENCE(CCBYNCND, "Creative Commons By, See <http://creativecommons.org/licenses/by-nc-nd/2.0>")
    	default:
    		return Q();
    	break;
    	}
    };
};

#endif
